package com.ds.infrastructure.hyperspace.common.config;

import com.ds.infrastructure.hyperspace.common.EndpointProtocolEnum;
import com.ds.infrastructure.hyperspace.common.ResolverTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * @author  Weishaoying
 */
@Getter
@Setter
public class TargetNodeConfig {

    public static final String DEFAULT_ZONE = "-";

    public static final int HTTP_DEFAULT_PORT = 80;

    public static final int HTTPS_DEFAULT_PORT = 443;

    private String host;

    private Integer port;

    private EndpointProtocolEnum protocol;

    private String zone = DEFAULT_ZONE;

    private TargetProtocolConfig protocolConfig;

    private ResolverTypeEnum resolverType = ResolverTypeEnum.RAW;

    public String servicePath;

}
